package com.example.CarManagement.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author 徐佳彪
 * @since 2025-07-08
 */
@TableName("c_log")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 日志唯一标识，主键
     */
    private String id;

    /**
     * 日志类型（0:系统日志，1:用车表日志）
     */
    private Boolean type;

    /**
     * 用车表ID，关联用车表（仅当type=1时有效）
     */
    private Long applicationCarId;

    /**
     * 日志内容
     */
    private String content;

    /**
     * 日志创建时间
     */
    private LocalDateTime createTime;

    /**
     * 操作人ID，关联用户表
     */
    private Long userId;

    /**
     * 是否删除（0:未删除，1:已删除）
     */
    private Boolean deleted;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Boolean getType() {
        return type;
    }

    public void setType(Boolean type) {
        this.type = type;
    }

    public Long getApplicationCarId() {
        return applicationCarId;
    }

    public void setApplicationCarId(Long applicationCarId) {
        this.applicationCarId = applicationCarId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Log{" +
            "id = " + id +
            ", type = " + type +
            ", applicationCarId = " + applicationCarId +
            ", content = " + content +
            ", createTime = " + createTime +
            ", userId = " + userId +
            ", deleted = " + deleted +
        "}";
    }
}
